{template "header-huiyuan.html"}
<!--主页-->
<div class="d-container navbar-fixed-top" >
	<div class="col-md-6 col-md-offset-3  " style="background: linear-gradient(to right, #11d2b5, #a692d9);">
		<div class="row">
			<div class="col-xs-12 d-bianhua-20">
				<a href="javascript:goBack();">
				    <img src="{HOME_THEME_PATH}quan/img/fanhui.svg" width="20" height="20" class=""/>
				</a>

				<a href="{CLIENT_URL}index.php?ye=0">
				    <img class="pull-right" src="{HOME_THEME_PATH}quan/img/shouye2.png" height="20"/> 
				</a>
				
			</div>
			
		</div>
	</div>
</div>
<div class="container d-gao-50">
</div>
<div class="d-container">
	<div class="d-row1">
		<div class="col-md-6 col-md-offset-3  d-yuanjiao-10-10-xia" style="background: linear-gradient(to right, #11d2b5, #a692d9);">
			<div class="row">
				<div class="d-yuanjiao-10 d-kuan d-bianhua-20 ">
					
					<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-26 d-zitiyanse-bai d-wenzi-juzhong" style="line-height: 100px;">
						{number_format($member.money, 2)} 元
						
					</div>
					<div class="d-kuan d-quxian-0">
						<a class="d-kuai" href="{dr_member_url('pay/recharge/index')}">
							<div class="d-kuan-juzhong d-wenzi-juzhong d-wenzi-16" style="width: 40%; background-color: #fff7cd; border-radius: 50px;padding: 5px;color: #285638;"> 充 值 </div>
						</a>
					</div>
					<div class="d-gao-50"></div>
					<div class="d-kuan-20 d-wenzi-14 d-wenzi-juzhong d-xia-10 d-quxian-0 " >
						<a class="" href="{dr_member_url('quan/woquan/qianbaoshouru')}" style="color: #ffffff;"><i class="bi bi-bar-chart-line"></i> <br>收入 </a>
					</div>
					<div class="d-kuan-20 d-wenzi-14 d-wenzi-juzhong d-xia-10 d-quxian-0 " >
						<a class="" href="{dr_member_url('quan/woquan/qianbaozhichu')}" style="color: #ffffff;"><i class="bi bi-bar-chart-line"></i> <br>支出</a>
					</div>
					<div class="d-kuan-20 d-wenzi-14 d-wenzi-juzhong d-xia-10 d-quxian-0 " >
						{if $member.zhifumima}
						<a class="" onclick="javascript:d_jifen();" style="color: #ffffff;"><i class="bi bi-shuffle"></i> <br>转账</a>
						{else}
						<a class="" href="{dr_url('member/account/zhifumima')}" style="color: #ffffff;"><i class="bi bi-shuffle"></i> <br>转账</a>
						{/if}
					</div>
					<div class="d-kuan-20 d-wenzi-14 d-wenzi-juzhong d-xia-10 d-quxian-0 " >
						{php $tixianhao = \Phpcmf\Service::M()->db->table('1_quan_tixian_hao')->where('uid', $member.id)->countAllResults();}
						{if $tixianhao > 0}
						<a class="" onclick="javascript:d_tixian();" style="color: #ffffff;"><i class="bi bi-box-arrow-up"></i> <br>提现</a>
						{else}
						<a class="" href="{dr_member_url('pay/tixianhao/add')}" style="color: #ffffff;"><i class="bi bi-box-arrow-up"></i> <br>提现</a>
						{/if}
					</div>
					<div class="d-kuan-20 d-wenzi-14 d-wenzi-juzhong d-xia-10 d-quxian-0 " >
						
						<a class="" href="{dr_member_url('quan/woquan/tixiandan')}" style="color: #ffffff;"><i class="bi bi-calendar2-plus"></i> <br>提现单</a>
						
					</div>
					<div class="d-gao-50"></div>
					<div class="d-clear"></div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="d-container">
	<div class="d-row">
		<div class="col-md-6 col-md-offset-3  d-yuanjiao-20" >
			<div class="row">
				<div class="d-yuanjiao-10 d-kuan d-bianhua-20 ">
					<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-16">
						共  
						{count action=table table=member_paylog uid=$member.uid return=qianbao}
						{$qianbao_count} 
						笔交易 
					</div>

					<div id="content_list">
						{template "qianbao-list.html"}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="d-jifen d-xiala-dashang" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<div class="col-xs-12 ">
					<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
						<div class="d-kuan d-neikuang-10" onclick="javascript:d_jifen();"><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
					</div>
				<div class="col-xs-5 d-wenzi-juzhong">
					<div class="d-gao-30"></div>
					<div class="d-wenzi-juzhong" >
					<a >
						<img src="{dr_avatar($member.id)}" width="40" height="40" class="d-yuanjiao-50"/>
					</a>
					</div>
					<div>{$member.name}</div>
					<div>ID:{$member.id}</div>
					<div>转出</div>
				</div>
				<div class="col-xs-2  d-wenzi-juzhong">
					<div class="d-gao-80"></div>
					<i class="bi bi-shuffle d-wenzi-18"></i>
				</div>
				<div class="col-xs-5  d-wenzi-juzhong">
					<div class="d-gao-30"></div>
					<a >
						<img id="uidtouxiang"  src="{dr_avatar(0)}" width="40" height="40" class="d-yuanjiao-50"/>
					</a>
					<div class="d-zitiyanse-hui" id="jinzhangname">名称</div>
					<div class="d-zitiyanse-hui" id="jinzhangid">UID:</div>
					<div class="d-zitiyanse-hui">对方</div>
				</div>
				<div class="d-clear"></div>
				<div class="d-gao-50 d-kuan"></div>
				<div class="d-clear"></div>
				
				
				  <div class="form-group ">
				    
				    <div class="input-group d-kuan">
				      <div class="input-group-addon">对方</div>
				      <input type="text" class="form-control-zhuan" id="duifang" placeholder="输入对方 UID" name="data[uid]" value="">
				      <!--div class="input-group-addon d-kuan-70">确 定</div-->
				    </div>
					<div class="input-group d-shang-10 d-kuan">
					  <div class="input-group-addon">转账</div>
					  <input type="text" class="form-control-zhuan" id="zhang" name="data[zhang]" value="" placeholder="转账额    您的余额：{number_format($member.money, 2)}">
					  <!--div class="input-group-addon d-kuan-70"></div-->
					</div>

					<div class="input-group d-shang-10 d-kuan">
					  <div class="input-group-addon">备注</div>
					  <input type="text" class="form-control-zhuan" id="beizhu" placeholder="写备注" name="data[beizhu]" value="">
					  <!--div class="input-group-addon d-kuan-70"></div-->
					</div>
				  </div>
				  <div class="d-clear"></div>
				  <div class="d-gao-50 d-kuan"></div>
				  <div class="d-clear"></div>
				  
				  <div id="jifenqueding" class="d-tanchuqueding"  style="display: none;" >
					  <div class="d-container">
					  	<div class="d-row">
					  		<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
								
									  <div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10" onclick="javascript:d_zhifuqueding();">
										<div class="d-kuan d-neikuang-10"  ><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
									  </div>
									
									  <div class="d-clear"></div>
									
									  <div class="modal-body d-wenzi-juzhong" >
										  
										  <p>一旦转出无法追回</p>
										  <p>请问是否确认转出</p>
										  
									  </div>
									  
									   <div class="input-container">
										 <div class="input-box">
										   <input type="password" maxlength="1" class="password-input" name="data[a]" value="" id="input1"/>
										   <input type="password" maxlength="1" class="password-input" name="data[b]" value="" id="input2"/>
										   <input type="password" maxlength="1" class="password-input" name="data[c]" value="" id="input3"/>
										   <input type="password" maxlength="1" class="password-input" name="data[d]" value="" id="input4"/>
										   <input type="password" maxlength="1" class="password-input" name="data[e]" value="" id="input5"/>
										   <input type="password" maxlength="1" class="password-input" name="data[f]" value="" id="input6"/>
										 </div>
									   </div>
									   
							   
										<div class="d-kuan d-shangxia-10 d-wenzi-juzhong" >
											<p> <a href="javascript:xiugaizhifumima();">忘记支付密码</a></p>
										</div>
										
									  <!--模态框的尾部内容-->
									  <div class="modal-footer">
										  <button id="queding"  type="submit" class="btn d-kuan yanse">确定转出</button>
									  </div>
							 
							       
							  
						</div>
					</div>
					</div>
				</div>
				<div class="row">
				  
							<div class="modal-footer">
							<button onclick="javascript:d_zhifuqueding();"  class="btn  d-kuan" >确定转出</button>
							</div>
							<div id="unqueding" class="btn  d-kuan " style="color: #ff831e; ">请输入正确的 UID</div>
							</div>
						
				</div>
				</div>
			</div>
		</div>
	</div>
	
</div>
<!---->
<div class="d-tixian d-xiala-dashang" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<div class="col-xs-12 ">
					<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
						<div class="d-kuan d-neikuang-10" onclick="javascript:d_tixian();"><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
					</div>
				
				<div class="d-clear"></div>
				<div class="d-gao-50 d-kuan"></div>
				<div class="d-clear"></div>
				
				
				  <div class="form-group ">
				    <div class="d-kuan d-wenzi-juzhong"><a>提现记录</a></div>
				    
					<div class="input-group d-shang-10 d-kuan">
					  <div class="input-group-addon">提现</div>
					  <input type="text" class="form-control-zhuan tixian-yue" id="zhangyue" name="data[zhang]" value="" placeholder="提现额    您的余额：{number_format($member.money, 2)}">
					  <!--div class="input-group-addon d-kuan-70"></div-->
					</div>

					<div class="input-group d-shang-10 d-kuan">
					  <div class="input-group-addon">备注</div>
					  <input type="text" class="form-control-zhuan" id="beizhuyue" placeholder="写备注" name="data[beizhu]" value="">
					  <!--div class="input-group-addon d-kuan-70"></div-->
					</div>
				  </div>
				  <div class="d-clear"></div>
				  <div class="d-gao-50 d-kuan"></div>
				  <div class="d-clear"></div>
				  
				  <div id="yuequeding" class="d-tanchuqueding"  style="display: none;" >
					  <div class="d-container">
					  	<div class="d-row">
					  		<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
								
									  <div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10" onclick="javascript:d_quedingtixian();">
										<div class="d-kuan d-neikuang-10"  ><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
									  </div>
									
									  <div class="d-clear"></div>

									  
									   <div class="input-container">
										 <div class="input-box">
										   <input type="password" maxlength="1" class="password-input-0" name="data[a]" value="" id="input10"/>
										   <input type="password" maxlength="1" class="password-input-0" name="data[b]" value="" id="input20"/>
										   <input type="password" maxlength="1" class="password-input-0" name="data[c]" value="" id="input30"/>
										   <input type="password" maxlength="1" class="password-input-0" name="data[d]" value="" id="input40"/>
										   <input type="password" maxlength="1" class="password-input-0" name="data[e]" value="" id="input50"/>
										   <input type="password" maxlength="1" class="password-input-0" name="data[f]" value="" id="input60"/>
										 </div>
									   </div>
									   
							   
										<div class="d-kuan d-shangxia-10 d-wenzi-juzhong" >
											<p> <a href="javascript:xiugaizhifumima();">忘记支付密码</a></p>
										</div>
										
									  <!--模态框的尾部内容-->
									  <div class="modal-footer">
										  <button id="quedingyue"  type="submit" class="btn d-kuan yanse">确定提现</button>
									  </div>
							 
							       
							  
						</div>
					</div>
					</div>
				</div>
				<div class="row">
				  
					<div class="modal-footer">
					<button onclick="javascript:d_quedingtixian();"  class="btn  d-kuan" >确定提现</button>
					</div>
							
						
				</div>
				</div>
			</div>
		</div>
	</div>
	
</div>
<script type="text/javascript">
	function xiugaizhifumima() {
	    dr_iframe("支付密码", "{dr_url('member/account/zhifumima')}", '100%', '100%');
	}
	function d_tixianzhanghao() {
	    dr_iframe("支付账号", "{dr_member_url('pay/tixianhao/add',['tanchu'=>'1'])}", '100%', '100%');
	}
	
	$('#unqueding').hide();
	function d_zhifuqueding() {
		if ($('#jifenqueding').is(':hidden')) {
			$('#jifenqueding').show();
			$('#input1').focus();
			
		} else {
			$('#jifenqueding').hide();
			
		}
	}
	//确定提现
	function d_quedingtixian() {
		if ($('#yuequeding').is(':hidden')) {
			$('#yuequeding').show();
			$('#input10').focus();
			
		} else {
			$('#yuequeding').hide();
			
		}
	}
	$(document).ready(function() {
	    $('#duifang').on('input', function() { 
			// 获取输入框的值  
			var inputValue = $(this).val().trim(); 
	        // 检查输入框是否有值  
	        // 如果输入框有值（非空）  
			if (inputValue !== '') {  
				// 调用 d_jifen 函数，并将输入框的值作为参数传递  
				d_zhuanuid(inputValue);  
			}  
	    });
		//检测余额
		$('#zhang').on('input', function() {
			// 获取输入框的值  
			var inputValue = $(this).val().trim(); 
		    // 检查输入框是否有值  
		    // 如果输入框有值（非空）  
			 
				// 调用 d_jifen 函数，并将输入框的值作为参数传递  
			d_jiance(inputValue);  
			
		}); 
		//检测提现余额
		$('#zhangyue').on('input', function() {
			// 获取输入框的值  
			var inputValue = $(this).val().trim(); 
		    // 检查输入框是否有值  
		    // 如果输入框有值（非空）  
			 
				// 调用 d_jifen 函数，并将输入框的值作为参数传递  
			d_jiance(inputValue);  
			
		}); 
		$('#queding-0').on('click', function(e) { 
			$('#jifenqueding').show();
		});
		// 为每个密码输入框添加事件监听器  
		$('.password-input').on('input', function() {  
	
	  
			// 遍历所有密码输入框并获取它们的值  
			var password = '';  
			$('.password-input').each(function() {  
				password += $(this).val(); // 将每个输入框的值连接起来  
			});  
			// 使用正则表达式检查密码是否只包含数字（可选）
			var regex = /^\d{1,6}$/; // 匹配1到6个数字的正则表达式 
			var shuru = regex.test(password);
			this.value = this.value.replace(/[^\d]/g, '');
	        console.log('ss',password);
			if(!regex.test(password)){
				
				layer.msg("密码为6为数字",{time:1000});
			}
			console.log('shuzi',password.length);
			if (password.length == 6) {
				//console.log('已经6',password.length);
				d_zhifumima(password);
				
			}

		});  
		// 为每个密码输入框添加事件监听器  
		$('.password-input-0').on('input', function() {  
	
	  
			// 遍历所有密码输入框并获取它们的值  
			var password = '';  
			$('.password-input-0').each(function() {  
				password += $(this).val(); // 将每个输入框的值连接起来  
			});  
			// 使用正则表达式检查密码是否只包含数字（可选）
			var regex = /^\d{1,6}$/; // 匹配1到6个数字的正则表达式 
			var shuru = regex.test(password);
			this.value = this.value.replace(/[^\d]/g, '');
	        //console.log('ss',password);
			if(!regex.test(password)){
				
				//layer.msg("密码为6为数字",{time:1000});
			}
			//console.log('shuzi',password.length);
			if (password.length == 6) {
				//console.log('已经6',password.length);
				d_zhifumima(password);
				
			}

		}); 
		//检测输入的提现
		// 为每个密码输入框添加事件监听器
		$('.tixian-yue').on('input', function() {  
			
			  
			// 遍历所有密码输入框并获取它们的值  
			// 使用正则表达式检查输入是否只包含0-9的整数  
			var regex = /^[0-9]*$/;  
			var inputValue = $(this).val(); 
			// 如果输入不符合要求，则清除非法的部分  
			if (!regex.test(inputValue)) {
				layer.msg("只支持整数",{time:1000});
				// 移除最后一个非法字符  
				$(this).val(inputValue.substring(0, inputValue.length - 1));  
			}  

		
		});
		
		 // 为每个输入框绑定input事件  
		$('#queding').on('click', function(e) {  
			
		  // 获取第一个输入框元素

			e.preventDefault(); // 阻止表单的默认提交行为  
			
			
			// 收集输入框的值  
			var beizhu = $('#beizhu').val();  
			var zhang = $('#zhang').val();  
			var duifang = $('#duifang').val();  
			var a = $('#input1').val(); 
			var b = $('#input2').val();
			var c = $('#input3').val();
			var d = $('#input4').val();
			var e = $('#input5').val();
			var f = $('#input6').val();
			// 检查输入框的值是否为空
			if (!duifang) {
				 layer.msg("对方UID不能为空",{time:1000});
				 d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}
			if (!zhang) {  
				
				layer.msg("转账额不能为空",{time:1000});
				d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}  
			if (!beizhu) {
				layer.msg("备注不能为空",{time:1000});
				d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}
			if (!a || !b || !c || !d || !e || !f) {
				layer.msg("密码不能为空",{time:1000});
				//d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}
			// 构造POST请求的数据  
			var dataToSend = {  
				'data[beizhu]': beizhu,
				'data[zhang]': zhang,
				'data[uid]': duifang,
				'data[a]': a,
				'data[b]': b,
				'data[c]': c,
				'data[d]': d,
				'data[e]': e,
				'data[f]': f,
			};  
	  
			// 发送POST请求  
			$.post('index.php?s=member&app=quan&c=woquan&m=zhuanyue', dataToSend, function(data) {  
				// 处理服务器响应 
				if (data.code==1) {
					$('#jifenqueding').hide();
					
					$('.d-jifen').hide();
					$('#uidtouxiang').attr('src', '/static/assets/images/avatar.png');
					$('#jinzhangname').html('名称');
					$('#jinzhangid').html('UID');
					$('#beizhu').val('');
					$('#zhang').val('');  
					$('#duifang').val('');
					layer.msg("转账成功",{time:1500});
					
				} else {
					layer.msg(data.msg,{time:1500});
				}
				// 根据响应更新页面或执行其他操作  
			}, 'json'); // 假设服务器返回的是JSON格式的数据  
		}); 
		// 提现余额
		// 为每个输入框绑定input事件
		$('#quedingyue').on('click', function(e) {  
			
		  // 获取第一个输入框元素
		
			e.preventDefault(); // 阻止表单的默认提交行为  
			
			
			// 收集输入框的值  
			var beizhu = $('#beizhuyue').val();  
			var zhang = $('#zhangyue').val();  
			
			var a = $('#input10').val(); 
			var b = $('#input20').val();
			var c = $('#input30').val();
			var d = $('#input40').val();
			var e = $('#input50').val();
			var f = $('#input60').val();
			// 检查输入框的值是否为空
			
			if (!zhang) {  
				
				layer.msg("转账额不能为空",{time:1000});
				d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}  
			if (!beizhu) {
				layer.msg("备注不能为空",{time:1000});
				d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}
			if (!a || !b || !c || !d || !e || !f) {
				layer.msg("密码不能为空",{time:1000});
				//d_zhifuqueding();
				return; // 如果为空，则不再执行后续代码  
			}
			// 构造POST请求的数据  
			var dataToSend = {  
				'data[beizhu]': beizhu,
				'data[zhang]': zhang,
				'data[a]': a,
				'data[b]': b,
				'data[c]': c,
				'data[d]': d,
				'data[e]': e,
				'data[f]': f,
			};  
			  
			// 发送POST请求  
			$.post('index.php?s=member&app=quan&c=woquan&m=tixianyue', dataToSend, function(data) {  
				// 处理服务器响应 
				if (data.code==1) {
					//d_quedingtixian();
					d_tixian();
					//$('#d-tixian').hide();
					
					$('#yuequeding').hide();

					$('#beizhuyue').val('');
					$('#zhangyue').val('');  
					
					layer.msg("提现成功",{time:1500});
					
				} else {
					layer.msg(data.msg,{time:1500});
				}
				// 根据响应更新页面或执行其他操作  
			}, 'json'); // 假设服务器返回的是JSON格式的数据  
		}); 
		
			//输入密码
			/*$('.password-input').on('input', function() {
			    var $inputs = $('.password-input');
			    var $current = $(this);
			    var currentIndex = $inputs.index($current);
			    
			    if ($current.val().length === 1 && currentIndex < $inputs.length - 1) {
			      $inputs.eq(currentIndex + 1).focus();
			    } else if ($current.val().length === 0 && currentIndex > 0) {
			      $inputs.eq(currentIndex - 1).focus();
			    }
			  });
			  
			  // 可选：当最后一个输入框被填满时，执行某些操作
			  $('.password-input').last().on('input', function() {
			    if ($(this).val().length === 1) {
			      alert('密码输入完成！');
			      // 清空所有输入框或其他操作
			      // $('.password-input').val('');
			    }
			  });*/
			$('.password-input').on('keydown', function(e) {
			    var $inputs = $('.password-input');
			    var $current = $(this);
			    var currentIndex = $inputs.index($current);
			
			    // 监听Backspace键（键码为8）
			    if (e.keyCode === 8 && $current.val() === '') {
			      if (currentIndex > 0) {
			        e.preventDefault(); // 阻止默认的Backspace行为
			        $inputs.eq(currentIndex - 1).focus().val(''); // 将焦点移动到前一个输入框并清空其内容
			      }
			    }
				
			  });
			
			  $('.password-input').on('input', function() {
			    var $inputs = $('.password-input');
			    var $current = $(this);
			    var currentIndex = $inputs.index($current);
			    
			    // 如果当前输入框有内容，则焦点移动到下一个输入框
			    if ($current.val().length === 1 && currentIndex < $inputs.length - 1) {
			      $inputs.eq(currentIndex + 1).focus();
			    }
			  });
			  $('.password-input').last().on('input', function() {
			    if ($(this).val().length === 1) {
			      //alert('密码输入完成！');
			      // 清空所有输入框或其他操作
			      // $('.password-input').val('');
			    }
			  });
			  
			  // mima 
			  $('.password-input-0').on('keydown', function(e) {
			    var $inputs = $('.password-input-0');
			    var $current = $(this);
			    var currentIndex = $inputs.index($current);
			
			    // 监听Backspace键（键码为8）
			    if (e.keyCode === 8 && $current.val() === '') {
			      if (currentIndex > 0) {
			        e.preventDefault(); // 阻止默认的Backspace行为
			        $inputs.eq(currentIndex - 1).focus().val(''); // 将焦点移动到前一个输入框并清空其内容
			      }
			    }
				
			  });
			
			  $('.password-input-0').on('input', function() {
			    var $inputs = $('.password-input-0');
			    var $current = $(this);
			    var currentIndex = $inputs.index($current);
			    
			    // 如果当前输入框有内容，则焦点移动到下一个输入框
			    if ($current.val().length === 1 && currentIndex < $inputs.length - 1) {
			      $inputs.eq(currentIndex + 1).focus();
			    }
			  });
			  $('.password-input-0').last().on('input', function() {
			    if ($(this).val().length === 1) {
			      //alert('密码输入完成！');
			      // 清空所有输入框或其他操作
			      // $('.password-input').val('');
			    }
			  });
			  
			
	   });
	function d_zhuanuid(uid){
		//layer.msg('用户UID:'+uid,{time:1000});
		$.get("{dr_url_prefix('index.php')}?s=member&app=quan&c=woquan&m=zhuanuid&uid="+uid, function(data){
		    //dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
			console.log('tou',data.code);
		    if (data.code==1) {
				// 返回的头像 URL  
				var newAvatarUrl = data.data.touxiang;  
				$('#uidtouxiang').attr('src', newAvatarUrl); 
				$('#jinzhangname').html(data.data.name);
		    	$('#jinzhangid').html('UID:'+data.data.uid);
				$('#queding').show();
				$('#unqueding').hide();
				
		    }else{
				$('#uidtouxiang').attr('src', '/static/assets/images/avatar.png');
				$('#jinzhangname').html('名称');
				$('#jinzhangid').html('UID');
				$('#queding').hide();
				$('#unqueding').show();
		    }
		}, 'json');
	}
	function d_zhifumima(mima){
		//console.log('密码',mima);
		$.get("{dr_url_prefix('index.php')}?s=member&app=quan&c=woquan&m=zhifumima&mima="+mima, function(data){
		    //dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
			console.log('tou',data.code);
		    if (data.code==1) {
				// 返回的头像 URL  
				layer.msg(data.msg,{time:1500});
				
		    }else{
				layer.msg(data.msg,{time:1500});
		    }
		}, 'json');
	}
	function d_jiance(yue){
		$.get("{dr_url_prefix('index.php')}?s=member&app=quan&c=woquan&m=yuepanduan&yue="+yue, function(data){
		    if (data.code==0) { 
				layer.msg(data.msg,{time:3000});
		    }
		}, 'json');
	}
//滚动显示更多
	var Mpage=1;
	var scroll_get = true;  //做个标志,不要反反复复的加载
	$(document).ready(function () {
	    $(window).scroll(function () {
	        if (scroll_get==true &&  (400 + $(window).scrollTop())>($(document).height() - $(window).height())) {
	            scroll_get = false;
	            /*layer.msg('内容加截中,请稍候',{time:1000});*/
	            dr_ajax_load_more();
	        }
	    });
	});
	function dr_ajax_load_more(){
	    Mpage++;
	    $.get('{SITE_URL}index.php?s=api&c=api&m=template&app=member&lanmu=quan&name=qianbao-list.html&format=json&page='+Mpage+'&'+Math.random(),function(res){
	        $('.footer-cont').hide();
	        if(res.code==1){
	            if (res.msg.indexOf("</div>") != -1) {
	                $('#content_list').append(res.msg);
	                scroll_get = true;
	            } else {
	                layer.msg("已经显示完了",{time:500});
	            }
	        }else{
	            /*layer.msg(res.msg,{time:2500});*/
	        }
	    }, 'json');
	}
	
	function d_jifen() {
		if ($('.d-jifen').is(':hidden')) {
			$('.d-jifen').show();
			$('#duifang').val('');
		} else {
			$('.d-jifen').hide();
		}
	}
	function d_tixian() {
		if ($('.d-tixian').is(':hidden')) {
			$('.d-tixian').show();
			
			$('#zhangyue').val('');
			
		} else {
			$('.d-tixian').hide();
		}
	}
</script>
<style>
	/*.modal, .modal-backdrop {
	    top: 0;
	    right: 0;
	    bottom: 0;
	    left: 0;
	}*/
	.yanse {
	    color: #FFF;
	    background-color: #11d2b5;
	    border-color: #11d2b5;
	}
	.d-tanchuqueding{
		z-index: 999999;
		position: fixed;
		bottom: 0px;
		width: 100%;
		/*height: 40%;*/
		overflow: auto;
		background: #ffffff;
		right: 0;
		left: 0;
		box-shadow: 0 0 20px #d6d6d6;
		background-color: rgba(255, 255, 255, 1.0);
		
		
	}
	.d-xiala-dashang {
	    z-index: 999000;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    /*height: 40%;*/
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.form-control-zhuan {
	    width: 100%;
	    height: 34px;
	    padding: 6px 12px;
	    background-color: #ffffff;
	    border: 1px solid #ffffff;
		border-bottom: 2px solid #ededed !important;
	    -webkit-box-shadow: inset 0 1px 1px rgb(255 255 255 / 8%);
	    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
		outline: none;
	}
	.form-control-zhuan:hover {
	    
	    width: 100%;
	    height: 34px;
	    padding: 6px 12px;
	    background-color: #ffffff;
	    border: 1px solid #ffffff;
	    border-bottom: 2px solid #b1b1b1 !important;
	    -webkit-box-shadow: inset 0 1px 1px rgb(255 255 255 / 8%);
	    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	    outline: none;
	}
	.input-group-addon {
	    padding: 6px 12px;
	    font-size: 14px;
	    font-weight: 400;
	    line-height: 1;
	    color: #555;
	    background-color: #ffffff;
	    border: 1px solid #ffffff;
	    border-radius: 4px;
	}
	.input-container {
	    display: flex;
	    justify-content: center;
	    align-items: center;
	    margin: 20px;
	  }
	  .input-box {
	    display: flex;
	  }
	  .input-box input {
	    width: 40px;
	    height: 40px;
	    margin: 2px;
	    text-align: center;
	    border: 1px solid #ccc;
	    font-size: 20px;
	  }
</style>
{template "fanhui.html"}
{template "mfooter.html"}